package com.lujieni.myredis.redis.provider;

import com.lujieni.myredis.domain.po.Person;
import com.lujieni.myredis.redis.ICacheProvider;
import org.springframework.stereotype.Component;

/**
 * @Package: com.lujieni.myredis.redis.provider
 * @ClassName: PersonProvider
 * @Author: lujieni
 * @Description: 1
 * @Date: 2021-02-19 16:50
 * @Version: 1.0
 */
@Component
public class PersonProvider implements ICacheProvider<String, Person> {

    @Override
    public Person get(String key) {
        Person person = new Person();
        person.setName("pipi");
        person.setAge(33);
        return person;
    }
}